﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="LogManager.aspx.vb" Inherits="Map.LogManager" %>
<%@ Register TagPrefix="cnt" Namespace="Mysoft.Map.Application.Controls" Assembly="Mysoft.Map.Application.Components" %>
<%@ Register TagPrefix="mnu" Namespace="Mysoft.Map.Application.Menus" Assembly="Mysoft.Map.Application.Components" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>日志管理</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">

		<link rel="stylesheet" type="text/css" href="/_grid/map_grid.css">
		<link rel="stylesheet" type="text/css" href="/_nav/menu.css">
		<link rel="stylesheet" type="text/css" href="/_forms/styles/form.css">
		<link rel="stylesheet" type="text/css" href="/_controls/find/find.css">
		<link rel="stylesheet" type="text/css" href="/_common/styles/global.css">

		<script language="javascript" src="/_common/scripts/global.js"></script>
		<script language="javascript" src="/_controls/settings.aspx"></script>
		<script language="javascript" src="/_controls/util/util.js"></script>
		<script language="javascript" src="/_controls/datetime/date.js"></script>
		<script language="javascript" src="/_controls/number/number.js"></script>
		<script language="javascript" src="/_controls/find/find.js"></script>
		<script language="javascript" src="/_controls/lookup/selectteamuser.js"></script>
		<script language="javascript" src="/_forms/FormBase.js"></script>
		<script language="javascript">
			//在线帮助文件
			var _MyHelpfile = "/HELP/LogManager.htm";

			// 打开删除窗口
			//
			function openDelWin()
			{
				// 选中行对象数组
				//
				var arrTr = appGrid.frameElement.getSelected();
				if (!arrTr) return;
				
				// 拼写 oids
				//
				var oids = "";
				for ( var i = 0; i < arrTr.length; i++ )
				{
					if ( i == 0 )
						oids += arrTr[i].oid;
					else
						oids += ";" + arrTr[i].oid;
				}
				if ( oids == "" ) return;		// 如果没有选中记录
				// 调用删除

				var result = publicDelete("00000106", "03", oids);
				
				// 处理返回结果
				if ( result == "success" )			// 如果删除成功
					appGrid.frameElement.Query();
				else if ( result == "cancel" )		// 如果取消删除
					return;
				else								// 如果删除失败
					alert( result );
			}

			// 打开清空日志窗口
			//
			function openClearWin()
			{
			    // 调用删除

			    var result = publicDelete("00000106", "04", "clear", "警告：该操作将删除所有操作日志，并且无法恢复！\n确实要执行该操作吗？");
				
				// 处理返回结果
				if ( result == "success" )			// 如果删除成功
					appGrid.frameElement.Query();
				else if ( result == "cancel" )		// 如果取消删除
					return;
				else								// 如果删除失败
					alert( result );
			}			
			// 触发查询事件
			function _Query()
			{
				// 将应用系统拼写到过滤字符串中
				appGrid.frameElement.filter = appFind.queryxml;
				appGrid.frameElement.Query();
			}
		
		</script>
	</HEAD>
	<body MS_POSITIONING="GridLayout" style="padding:10px;">
		<cnt:AppLog id="appLog" runat="server" />
		<table style="FONT-SIZE: 9pt;" height="100%" border="0" cellSpacing="0" cellPadding="0" width="100%">
			<tr height="1">
				<td>
					<cnt:AppFind id="appFind" runat="server" />
				</td>
			</tr>
			<tr height="10">
				<td></td>
			</tr>
			<tr height="1">
				<td>
					<mnu:AppGridMenu id="appGridMenu" runat="server" />
				</td>
			</tr>
			<tr>
				<td>
					<cnt:AppGrid id="appGrid" runat="server" filter="<filter/>" />
				</td>
			</tr>
		</table>

	</body>
</HTML>
